public class Date {
    public int year;
    public int month;
    public int day;

    public Date() {
        this(1937,7,7);
        System.out.println("Date()...");
    }

    public Date(int year,int month,int day) {
        //System.out.println("Date()...");
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getYear() {
        return this.year;
    }

    public void printDate() {
        System.out.println(this.year+"年"+
                this.month+"月"+this.day+"日");
    }
}
